import { request } from '@/request/request';

/**
 * 院所详情
 * @param data
 */
export const getHospitalInfo = (data:any): Promise<any> => {
    return request({ url: '/hospital/detail', data, method: 'GET' })
}

/**
 * 默认医院.
 * @param data
 */
export const getDefaultHospital = (data:any): Promise<any> => {
    return request({ url: '/hospital/default', data, method: 'GET' })
}

/**
 * 根据经纬度获取最近的门店.
 * @param data
 */
export const getHospitalsByPosition = (data:any) => {
    return request({ url: '/hospital/hospitalsByPosition', data, method: 'GET' })
}

/**
 * 根据城市获取门店.
 * @param data
 */
export const getHospitalsByCity = (data: any) => {
    return request({ url: '/hospital/hospitalsByCity', data, method: 'GET' })
}

/**
 * 常用门店列表.
 * @param data
 */
export const getCommonUseStores = (data: any) => {
    return request({ url: '/user/commonUseStores', data, method: 'GET' })
}

/**
 * 搜索门店.
 * @param data
 */
export const getHospitalsBySearchKeyword = (data:any) => {
    return request({ url: '/hospital/search', data, method: 'GET' })
}
